package com.fowo.api.model.listing.small.rank;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** Listing小类排名信息 导入导出辅助模型 */
@Getter
@Setter
public class ListingSmallRankExcelPo {

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "所属Listing")
  private String listingIdFnsku;

  @ExcelIgnore
  @ExcelProperty(value = "所属Listing")
  private Long listingId;

  @Size(max = 50, message = "小类名称长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "小类名称")
  private String category;

  @Size(max = 50, message = "小类排名长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "小类排名")
  private String rank;
}
